Optimal. Leaf size=85 \[ \frac{16688 (10 x+3)}{148955 \left (5 x^2+3 x+2\right )}+\frac{11 (12060 x+4579)}{120125 \left (5 x^2+3 x+2\right )^2}+\frac{121 (69 x+61)}{11625 \left (5 x^2+3 x+2\right )^3}+\frac{66752 \tan ^{-1}\left (\frac{10 x+3}{\sqrt{31}}\right )}{29791 \sqrt{31}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0633293, antiderivative size = 85, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {1660, 12, 614, 618, 204} \[ \frac{16688 (10 x+3)}{148955 \left (5 x^2+3 x+2\right )}+\frac{11 (12060 x+4579)}{120125 \left (5 x^2+3 x+2\right )^2}+\frac{121 (69 x+61)}{11625 \left (5 x^2+3 x+2\right )^3}+\frac{66752 \tan ^{-1}\left (\frac{10 x+3}{\sqrt{31}}\right )}{29791 \sqrt{31}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1660
Rule 12
Rule 614
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{\left (3-x+2 x^2\right )^2}{\left (2+3 x+5 x^2\right )^4} \, dx &=\frac{121 (61+69 x)}{11625 \left (2+3 x+5 x^2\right )^3}+\frac{1}{93} \int \frac{\frac{77178}{125}-\frac{2976 x}{25}+\frac{372 x^2}{5}}{\left (2+3 x+5 x^2\right )^3} \, dx\\ &=\frac{121 (61+69 x)}{11625 \left (2+3 x+5 x^2\right )^3}+\frac{11 (4579+12060 x)}{120125 \left (2+3 x+5 x^2\right )^2}+\frac{\int \frac{100128}{5 \left (2+3 x+5 x^2\right )^2} \, dx}{5766}\\ &=\frac{121 (61+69 x)}{11625 \left (2+3 x+5 x^2\right )^3}+\frac{11 (4579+12060 x)}{120125 \left (2+3 x+5 x^2\right )^2}+\frac{16688 \int \frac{1}{\left (2+3 x+5 x^2\right )^2} \, dx}{4805}\\ &=\frac{121 (61+69 x)}{11625 \left (2+3 x+5 x^2\right )^3}+\frac{11 (4579+12060 x)}{120125 \left (2+3 x+5 x^2\right )^2}+\frac{16688 (3+10 x)}{148955 \left (2+3 x+5 x^2\right )}+\frac{33376 \int \frac{1}{2+3 x+5 x^2} \, dx}{29791}\\ &=\frac{121 (61+69 x)}{11625 \left (2+3 x+5 x^2\right )^3}+\frac{11 (4579+12060 x)}{120125 \left (2+3 x+5 x^2\right )^2}+\frac{16688 (3+10 x)}{148955 \left (2+3 x+5 x^2\right )}-\frac{66752 \operatorname{Subst}\left (\int \frac{1}{-31-x^2} \, dx,x,3+10 x\right )}{29791}\\ &=\frac{121 (61+69 x)}{11625 \left (2+3 x+5 x^2\right )^3}+\frac{11 (4579+12060 x)}{120125 \left (2+3 x+5 x^2\right )^2}+\frac{16688 (3+10 x)}{148955 \left (2+3 x+5 x^2\right )}+\frac{66752 \tan ^{-1}\left (\frac{3+10 x}{\sqrt{31}}\right )}{29791 \sqrt{31}}\\ \end{align*}
Mathematica [A] time = 0.0449281, size = 63, normalized size = 0.74 \[ \frac{12516000 x^5+18774000 x^4+21491796 x^3+12780597 x^2+5674908 x+1259239}{446865 \left (5 x^2+3 x+2\right )^3}+\frac{66752 \tan ^{-1}\left (\frac{10 x+3}{\sqrt{31}}\right )}{29791 \sqrt{31}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.05, size = 57, normalized size = 0.7 \begin{align*} 125\,{\frac{1}{ \left ( 5\,{x}^{2}+3\,x+2 \right ) ^{3}} \left ({\frac{33376\,{x}^{5}}{148955}}+{\frac{50064\,{x}^{4}}{148955}}+{\frac{7163932\,{x}^{3}}{18619375}}+{\frac{4260199\,{x}^{2}}{18619375}}+{\frac{1891636\,x}{18619375}}+{\frac{1259239}{55858125}} \right ) }+{\frac{66752\,\sqrt{31}}{923521}\arctan \left ({\frac{ \left ( 3+10\,x \right ) \sqrt{31}}{31}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.44632, size = 103, normalized size = 1.21 \begin{align*} \frac{66752}{923521} \, \sqrt{31} \arctan \left (\frac{1}{31} \, \sqrt{31}{\left (10 \, x + 3\right )}\right ) + \frac{12516000 \, x^{5} + 18774000 \, x^{4} + 21491796 \, x^{3} + 12780597 \, x^{2} + 5674908 \, x + 1259239}{446865 \,{\left (125 \, x^{6} + 225 \, x^{5} + 285 \, x^{4} + 207 \, x^{3} + 114 \, x^{2} + 36 \, x + 8\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.963056, size = 371, normalized size = 4.36 \begin{align*} \frac{387996000 \, x^{5} + 581994000 \, x^{4} + 666245676 \, x^{3} + 1001280 \, \sqrt{31}{\left (125 \, x^{6} + 225 \, x^{5} + 285 \, x^{4} + 207 \, x^{3} + 114 \, x^{2} + 36 \, x + 8\right )} \arctan \left (\frac{1}{31} \, \sqrt{31}{\left (10 \, x + 3\right )}\right ) + 396198507 \, x^{2} + 175922148 \, x + 39036409}{13852815 \,{\left (125 \, x^{6} + 225 \, x^{5} + 285 \, x^{4} + 207 \, x^{3} + 114 \, x^{2} + 36 \, x + 8\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.251072, size = 83, normalized size = 0.98 \begin{align*} \frac{12516000 x^{5} + 18774000 x^{4} + 21491796 x^{3} + 12780597 x^{2} + 5674908 x + 1259239}{55858125 x^{6} + 100544625 x^{5} + 127356525 x^{4} + 92501055 x^{3} + 50942610 x^{2} + 16087140 x + 3574920} + \frac{66752 \sqrt{31} \operatorname{atan}{\left (\frac{10 \sqrt{31} x}{31} + \frac{3 \sqrt{31}}{31} \right )}}{923521} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18208, size = 76, normalized size = 0.89 \begin{align*} \frac{66752}{923521} \, \sqrt{31} \arctan \left (\frac{1}{31} \, \sqrt{31}{\left (10 \, x + 3\right )}\right ) + \frac{12516000 \, x^{5} + 18774000 \, x^{4} + 21491796 \, x^{3} + 12780597 \, x^{2} + 5674908 \, x + 1259239}{446865 \,{\left (5 \, x^{2} + 3 \, x + 2\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]